<?php

class Application_Form_Booking extends Zend_Form
{

    public function init()
    {
        $this->setName("frmBooking");

        $uid = new Zend_Form_Element_Hidden('uid');
        $uid->addFilter("Int");

        $vid = new Zend_Form_Element_Hidden('vid');
        $vid->addFilter("Int");

        $act = new Zend_Form_Element_Hidden('act');
        $act->setValue("create");

        $elements = new Application_Form_Elements();

        $this->addElements(array(
            $uid, $vid, $act,
            $elements->formDate('Start Date (ddmmyyyy)','date',false),
            $elements->formNumber('Duration (day)', 'duration', 2),
            $elements->formName('Organizer',35,'organizer'),
            $elements->formNumber('Participant', 'participant', 5),
            $elements->formSubmit(),
        ));
    }


}

